﻿/* $RCSFile: CssCompressionHelper.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/Helpers/CssCompressionHelper.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:28  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.IO;

namespace AddonNice.Helpers
{
    public static class Extensions
    {
        public static bool ContainsIgnoreCase(this string left,string right)
        {
            var pattern = new Regex(right,RegexOptions.IgnoreCase);
            return pattern.IsMatch(left);
        }

        public static bool EqualsIgnoreCase(this string left, string right)    
        {        
            return String.Compare(left, right, true) == 0;    
        }
    }

}
